Find and Replace Operations

The Find and Replace command enables you to search for a specified string of characters within your project.

You can use any of the following methods to access this functionality:

Information and Logs

For more details, refer to the Information and Logs toolbox.

Dictionary

Right-click on the variable name and select the Find all command in the menu.
This command starts a search of all documents for the selected variable and displays the results in the table widget within the Information and Logs toolbox.


  • This opeartion selects only the instances that match the complete words (for example, a search for "MyVar" returns "MyVar" but not "MyVar1”).

Editor

It is possible to perform a search and replace from a PLCClosed "Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events editor (ST/IL, FBD, FFLD) by selecting the Find, Find next, and Find All commands in the contextual menu.

Find and Replace from an Editor

Figure 3-13: Find and Replace from an Editor

Function Description
Match Whole Word When selected, only the instances that match the complete words defined in the "Find what" field are selected (for example, a search for MyVar returns "MyVar" but not "MyVar1”).
Find next Allows you to select in the current editor the next instance of the matched string.
Replace next Allows you to replace the next instance of the matched string.
Replace all Allows you to replace in the current editor all instances of the matched string.

  • The Find, Replace and Replace all operations work only for variable symbol property of the Control.


  • When the Find All command is applied to a variable, the system will return a list of all instances of the variable, not just those in the current program.